Sys.Application.add_init(appInit);

function appInit(sender, initEventArgs) {
    alert('in app init :: Debug Script');

    var prm = Sys.WebForms.PageRequestManager.getInstance();
    prm.add_initializeRequest(InitializeRequest);
    prm.add_beginRequest(BeginRequest);
    prm.add_pageLoading(PageLoading);
    prm.add_pageLoaded(PageLoaded);
    prm.add_endRequest(EndRequest);
}  

function InitializeRequest() { alert('In Init Request'); }
function BeginRequest() { alert('In Being Request'); }
function PageLoading() { alert('In Page Loading'); }
function PageLoaded() { alert('In Page Loaded'); }  
function EndRequest() { alert('In End Request'); }







